package com.hoas.quickstart.threads.chapter02.chapter02_2_8_01;

public class MyObject {

    synchronized public void speedPrintString() {

        System.out.println("speedPrintString __getLock time=" + System.currentTimeMillis()
                + " run thread-name=" + Thread.currentThread().getName());

        System.out.println("-----------------------");

        System.out.println("speedPrintString releaseLock time=" + System.currentTimeMillis()
                + " run thread-name=" + Thread.currentThread().getName());



    }

}
